package com.woniuxy.resultCode;

public enum ResultCode implements CustomizeResultCode {
    SUCCESS(2000,"成功"),
    ERROR(2001,"失败"),
    UNKOWN_EXCEPTION(3006,"我也不知道是为什么，但是就是达不到你想要的效果"),
    PASS_NOT_CORRECT(3005,"密码不正确！请重新尝试！"),
    NOT_LOGIN(3006,"尚未登录！"),
    UNAUHENTICATION(3007,"哥们，登录过期了，去重新登录一下吧！"),
    UNAUTHORIZATION(3008,"哥们，权限不够就不要访问了"),
    PAGE_NOT_FOUND(404,"您要请求的页面已经溜走了！等会在来访问吧！"),
    INTERNAL_SERVER_ERROR(500,"服务器已冒烟！请正常操作！"),
    TRY_REFRESH(2020,"距离上次操作已经很久了！请刷新一下页面保持数据为最新！"),
    DELETE_ERROR(3009,"我也不知道为什么,反正是删除失败！"),
    ;
    private Integer code;
    private String message;

    ResultCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }
    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }
}
